package cn.lj.common.cahce;

import cn.lj.login.mapper.pojo.SmallMiUser;

import java.io.Serializable;

/**
 * @Description: LoginCahce本地线程类
 * @author: lijie
 * @date: 2021年07月20日 下午 12:21:37
 */
public class LoginCahce implements Serializable {
    private static final long serialVersionUID = 1L;
    //本地线程类
    public static ThreadLocal<SmallMiUser> threadLocal = new ThreadLocal<>();

    public static void setSmallMiUser(SmallMiUser smallMiUser) {
        threadLocal.set(smallMiUser);
    }

    public static SmallMiUser getSmallMiUser() {
        return threadLocal.get();
    }
}
